package com.dashu.device.model;


import com.dashu.base.enums.common.GenderType;
import com.dashu.base.enums.common.PersonalType;
import com.dashu.base.enums.common.Status;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;

@Entity
@Table(name = "ds_company_personal")
@Data
public class CompanyPersonal implements Serializable {
    /**
     * 个人属性
     */
    @Id
    private long id; //主键id
    private long createTime;//创建时间
    private long createUser;// 创建者
    private long updateTime;//更新时间
    private long updateUser;//更新者
    private String personalName; // 姓名
    @Enumerated(EnumType.STRING)
    private GenderType gender; //性别
    @Enumerated(EnumType.STRING)
    private PersonalType personalType; //类型
    private long companyId; //所属单位
    private long departmentId; //所属年级
    private long clsId; //所属组织
    private String icon; //icon
    private long attendanceId;
    private long gateId;
    private String num;
    @Enumerated(EnumType.STRING)
    private Status status;
}
